package com.example.vspm.mapper;

import com.example.vspm.entity.TaskForm;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface TaskFormMapper {
    @Select(value = "select * from vspm_taskForm where state=#{state}")
    List<TaskForm> tasks(int state);
    @Select(value = "select * from vspm_taskForm where pid2=#{pid2}")
    List<TaskForm> findTaskByPid(int pid2);
}
